.person-content h1
{
    margin-bottom: 12px;
}

.person-content .alert {
    border-radius: 8px;
    border: 0 !important;
}

.person-content ul,
.person-content ul li,
.person-content ul a {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Profile */

.person-profile {
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 20px;
}

.person-profile-content {
    display: flex;
    padding-bottom: 20px;
}

.person-profile-content-name {
    display: flex;
    flex-direction: column;
    padding-left: 200px;
    padding-top: 10px;
    margin-right: auto;
}

.person-profile-content-name-1 {
    margin-bottom: 0px;
    font-size: 30px;
    font-family: NeueMachina;
    padding-left: 12px;
}

.person-profile-content-name-2 {
    margin-bottom: 8px !important;
    padding-left: 12px;
}

@media(min-width: 992px) {
    .content-name-width {
        max-width: 300px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .content-name-width {
        max-width: 230px;
    }
}

@media(max-width: 993px) and (min-width: 768px) {
    .person-setting-bar {
        padding-left: 16px !important;
    }
}

@media(max-width: 992px) {
    .content-name-width {
        max-width: 300px;
        word-wrap: break-word;
    }

    .person-profile-content-name-1 {
        padding: 0px;
    }

    .person-profile-content-name-2 {
        padding: 0px;
    }

    .person-setting-bar svg {
        display: none;
    }
}

@media(max-width: 371px) {
    .content-name-width {
        max-width: 150px;
    }
}

.person-profile-content-buttons {
    padding: 10px;
    display: flex;
    height: 60px;
    justify-content: end;
}

.person-profile-content-buttons .btn-secondary {
    background: var(--person-button);
    border: 1px solid var(--person-button);
    --bs-btn-focus-shadow-rgb: var(--person-button-focus) !important;
}

.person-profile-content-buttons .btn-secondary:hover,
.person-profile-content-buttons .btn-secondary:focus {
    border: 1px solid var(--person-button-border);
}

.person-profile-bg
{
    border-radius: 8px 8px 0 0;
    background-position: center;
    padding: 50px 25px;
    height: 250px;
    margin-bottom: -10px;

    background-size: cover;
}

.person-profile-bg img {
    width: 170px;
    height: 170px !important;
    border-radius: 100%;
    margin-top: 100px;
    max-width: 100%;
    height: auto;
    background-color: var(--bg-light);
}

.person-profile-subs {
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.person-profile-subs button {
    color: var(--text-color);
    background: var(--bg-light);
}

.person-profile-subs button:hover,
.person-profile-subs button:focus,
.person-profile-subs button:active {
    background: var(--bg-light);
}

.person-profile-subs button:disabled {
    border: 0 !important;
}

.person-profile-content-buttons-width {
    min-width: 238px;
}

/* Profile Adaptive */

.person-profile .person-profile-content .person-profile-content-name {
    align-items: start;
    justify-content: start;
}

@media(max-width: 991px) {
    .person-profile-subs {
        justify-content: center;
    }

    .person-profile-bg {
        display: flex;
        justify-content: center;
        height: 200px;
    }

    .person-profile-bg img {
        margin-top: 50px;
    }

    .person-profile .person-profile-content {
        padding-top: 60px;
        flex-direction: column;
        align-items: center;
        padding-bottom: 10px;
    }

    .person-profile .person-profile-content .person-profile-content-name {
        padding: 20px;
        margin: 0;
        text-align: center;
        padding-bottom: 0;
        justify-content: center;
        align-items: center;
    }

    .person-profile .person-profile-content .person-profile-content-name p {
        margin-bottom: 0;
    }

    .person-profile .person-profile-content .person-profile-content-buttons {
        padding-bottom: 0;
        width: 100%;
        height: 50px;
    }

    .person-profile .person-profile-content .person-profile-content-buttons button {
        width: 100%;
    }

    .person-rightbar-content {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    .person-rightbar-empty {
        flex: 0 0 auto !important;
        width: 0% !important;
        display: none !important;
    }
}

@media(min-width: 992px) {
    .person-profile {
        min-height: 125px;
    }

    .person-profile-content-name {
        min-height: 105px;
    }
}

@media(max-width: 371px) {
    .person-profile-bg img {
        width: 130px;
        height: 130px !important;
    }

    .person-profile .person-profile-content {
        padding-top: 30px;
    }
}

/* Add post */

.person-form {
    margin-bottom: 30px;
    border-radius: 8px;
    background: var(--bg-light);
    padding: 6px;
}

.person-form form {
    margin: 0 !important;
}

.person-form form input {
    background: var(--bg-light) !important;
    border: 0 !important;
}

/* Posts */

.person-posts {
    margin-bottom: 30px;
}

.person-posts-center {
    text-align: center;
}

.person-posts .person-posts-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.person-posts a {
    display: block;
}

/* Search */

.person-search-list ul a::after {
    margin-bottom: 16px;
    padding-bottom: 16px;
    padding: 0;
}

.person-search-list ul a img {
    width: 48px;
    border-radius: 50%;
    margin-right: 10px;
}

.person-search-list ul a
{
    display: flex;
    align-items: center;
    font-size: 20px;
    font-family: NeueMachina;
}

.person-search-list ul li a img {
    border-radius: 50%;
    margin-right: 15px;
}

.person-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.person-search-pagination button {
    display: flex;
    align-items: center;

    background: var(--bg-color) !important;
    color: var(--button-primary);
    fill: var(--button-primary);

    margin-left: 5px;
    margin-right: 5px;

    border-radius: 8px;
    border: 1px solid var(--bg-color);
}

.person-search-pagination button:hover,
.person-search-pagination button:focus {
    border: 1px solid var(--text-color-4);
    color: var(--button-primary);
}

.person-search-pagination button:disabled {
    border: 0;
    color: var(--text-default) !important;
}

.person-search-pagination button:disabled svg {
    fill: var(--text-default);
}

.person-search-pagination button svg {
    width: 14px;
    height: 14px;
    fill: var(--button-primary);
}

.person-search-list ul li::after {
    margin-bottom: 16px;
    padding-bottom: 16px;
    padding: 0;
}

.person-search-list ul li img {
    width: 48px;
    border-radius: 50%;
    margin-right: 10px;
}

.person-search-list ul li {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-family: NeueMachina;
}

.person-search-list ul li img {
    border-radius: 50%;
    margin-right: 15px;
}

/* Settings */

.form-delete-account {
    width: 50%;
}

.form-delete-account button {
    border-radius: 8px;
}

@media(max-width: 991px) {
    .form-delete-account {
        width: 100%;
    }
}

@media(max-width: 767px) {
    .person-setting {
        flex-direction: column-reverse;
    }
}

.person-setting-bg {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 8px;
    border: 1px solid var(--bg-light-active);
}

.person-setting-bg ul {
    background: var(--bg-light);
    margin: 0;
    padding: 0;
}

.person-setting-bg ul li {
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    list-style-type: none;
    margin-bottom: 10px;
}

.person-setting-bg ul li a {
    background: var(--bg-light) !important;
}

.person-setting-bg ul li:last-child {
    margin-bottom: 0 !important;
}

.person-setting-content h2 {
    margin-top: 10px;
}

.person-setting-content form {
    margin-bottom: 10px;
}

@media(min-width: 992px) {
    .person-setting-bg form {
        width: 50%;
    }
}

.person-setting-bg form input {
    margin-bottom: 6px;
    border-radius: 8px;
}

.person-setting-bg form textarea {
    margin-bottom: 6px;
    border-radius: 8px;
}

.person-setting-bg .alert {
    border-radius: 8px;
}

.person-setting-bg form button[type="submit"] {
    margin-top: 10px;
    border-radius: 8px;
}

.person-setting-bg form button.btn-danger {
    border-radius: 8px;
}



/* Settings image */

form.person-settings-form-image.form-image-bg .row .col img {
    width: 300px;
    border-radius: 8px;
}

form.person-settings-form-image {
    width: 100%;
}

form.person-settings-form-image .row {
    margin-bottom: 8px;
}

form.person-settings-form-image .row .col img {
    border-radius: 50%;
    width: 100px;
    height: auto;
    max-width: 100%;
}

@media(max-width: 371px) {
    form.person-settings-form-image .row .col img {
        width: 70px;
    }
}

form.person-settings-form-image .row .col input:checked+label img {
    outline: 3px solid var(--button-primary);
}

form.person-settings-form-image .row .col input:focus+label img {
    outline: 3px solid var(--button-primary);
}

form.person-settings-form-image .row .col input+label {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media(max-width: 991px) {
    form.person-settings-form-image button[type="submit"] {
        width: 100%;
    }
}

/* Notifications */

.person-content-notifications-main h2 {
    margin-top: 30px;
}

.person-content-notifications-block {
    padding: 10px;
}

ul.person-content-notifications li {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

ul.person-content-notifications li h5 {
    margin-top: 0rem;
    margin-bottom: 0;
}

ul.person-content-notifications li:first-child h5 {
    margin-top: 0 !important;
}

ul.person-content-notifications li:last-child h5 {
    margin-bottom: 0 !important;
}

.person-content-notifications-button {
    margin-bottom: 4px;
    align-items: center;
}

.person-content-notifications-button button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Notifications svg */

.notifications-svg-rotate-bottom {
    transform: rotate(0);
    transition: .3s;
    margin-top: 3px;
}

.notifications-svg-rotate-top {
    transform: rotate(180deg);
    transition: .3s;
    margin-bottom: 3px;
}

/* List */

.person-content .list-group {
    --bs-list-group-border-color: var(--text-color-3);
    --bs-list-group-action-hover-bg: var(--bg-light);
    --bs-list-group-action-active-bg: var(--bg-light-active);
}

.person-content .list-group a {
    transition: .3s;
}

.person-content .list-group a:hover,
.person-content .list-group a:focus {
    color: var(--text-color);
}

/* Achivs */

ul.person-content-achivs li
{
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

ul.person-content-achivs li span p {
    margin-bottom: 0;
}

ul.person-content-achivs li span p.person-content-achivs-name {
    font-family: NeueMachina;
}

ul.person-content-achivs li img {
    width: 100px;
    border-radius: 50%;
    margin-right: 20px;

    border: 5px solid #fff;
}

@media(max-width: 371px) {
    ul.person-content-achivs li {
        flex-direction: column;
        text-align: center;
    }

    ul.person-content-achivs li img {
        margin-bottom: 10px;
        margin-right: 0;
    }

    ul.person-content-achivs li span p.person-content-achivs-name {
        font-size: 20px;
    }

    ul.person-content-achivs li span p {
        font-size: 16px;
    }
}

/* Messages */

.person-messages-bg
{
    background: var(--bg-light);
    border-radius: 8px;
}

.person-messages-bg ul {
    border-radius: 8px !important;
}

.person-messages-bg ul a {
    background: var(--bg-light) !important;
    display: flex;
    align-items: center;
    padding-top: 16px;
}

.person-messages-bg ul a img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.person-messages-bg ul a span {
    font-family: NeueMachina;
    padding-left: 10px;
    font-size: 18px;
}

.person-messages-bg ul a.list-active {
    border: 1px solid var(--text-color-4);
}

.person-messages-header {
    padding: 12px 30px;
    border-bottom: 1px solid var(--text-color-4);
}

.person-messages-header-user {
    display: flex;
    align-items: center;
    justify-content: start;
}

.person-messages-header-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.person-messages-header-user span.header-user-name {
    font-family: NeueMachina;
    font-size: 20px;
    padding-left: 10px;
    margin-right: auto;
}

.person-messages-header-user span a svg {
    fill: var(--text-color);
    width: 24px;
    height: 24px;
    margin-left: 20px;
}

.person-messages-content {
    padding: 10px 20px;
    height: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: auto;
}

.person-messages-content .message-he {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: auto;
}

.person-messages-content .message-he span.message {
    display: flex;
    flex-direction: column;
    text-align: end;
    background: var(--bg-color);
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    max-width: 200px;
}

.person-messages-content .message-he span.message-text {
    text-align: start;
    word-wrap: break-word;
}

.person-messages-content .message-me {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: auto;
}

.person-messages-content .message-me span.message {
    display: flex;
    flex-direction: column;
    text-align: end;
    background: var(--bg-message-me);
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    max-width: 200px;
}

.person-messages-content .message-me span.message-text {
    text-align: start;
    word-wrap: break-word;
}

.person-messages-content span.message-time {
    font-size: 12px;
    color: var(--text-color-2);
    margin-top: -10px;
}

.person-messages-input
{
    border-top: 1px solid var(--text-color-4);
    padding: 5px;
}

.person-messages-input form {
    display: flex;
}

.person-messages-input form button[type="submit"] {
    margin-left: 5px;
    background: var(--bg-light) !important;
    border: 0 !important;
}

.person-messages-input form button[type="submit"] svg {
    fill: var(--button-primary);
    width: 24px;
    height: 24px;
}

.person-messages-input form button[type="submit"]:hover svg {
    fill: var(--button-primary-hover-2);
}

.person-messages-input form input[name="message"] {
    background: var(--bg-light) !important;
    border: 0 !important;
    outline: 0 !important;
}

.person-messages-input form input[name="message"]:active {
    outline: 0 !important;
    border: 0 !important;
}

.person-messages-content .message-empty {
    margin-top: auto;
    text-align: center;
}

/* Post */

a.person-post-back {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

a.person-post-back svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}


.person-post-content .person-post-content-img {
    height: auto;
    max-width: 100%;
    background-size: cover;
    background-position: center;

    display: flex;
}

.person-post-content .person-post-content-img button {
    margin-left: auto !important;
    margin-top: auto !important;

    margin: 0;
    padding: 10px;
    background: transparent;
    border: 0 !important;
}

@media(min-width: 993px) {
    .person-post-content .person-post-content-img {
        height: 470px;
    }
}

@media(max-width: 992px) {
    .person-post-content .person-post-content-img {
        height: 300px;
    }

    .person-post-content {
        flex-direction: column;
    }

    .person-post-content-img,
    .person-post-content-post {
        width: 100%;
    }
}

.person-post-content {
    padding: 20px !important;
}

.person-post-content div {
    margin: 0;
    padding: 0;
}

.person-post-content .person-post-content-post {
    border: 1px solid var(--text-color-4);
}

.person-post-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--text-color-4);
}

.person-post-header-content {
    padding: 10px 20px !important;
}

.person-post-header span {
    margin-left: 10px;
    font-family: NeueMachina;
}

.person-post-bottom
{
    display: flex;
    padding-top: 10px;
    border-top: 1px solid var(--text-color-4);
}

.person-post-bottom button {
    border: 0 !important;
    padding: 0;
    margin: 0;
    margin-right: 10px;
    background: transparent;
}

.person-post-bottom button:active,
.person-post-bottom button:focus,
.person-post-bottom button:hover {
    background: transparent;
}

.person-post-bottom button svg {
    fill: var(--post-icon);
}

.person-post-bottom button:hover svg {
    fill: var(--post-icon-hover);
}

.person-post-bottom-content {
    padding: 20px !important;
}

.person-post-content-user {
    display: flex;
}

.person-post-content-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 8px;
}

.person-post-content-user .post-content-user-content
{
    display: flex;
    flex-direction: column;
}

.person-post-content-user .post-content-user-content p {
    margin-bottom: 4px;
}

.person-post-content-user .post-content-user-content span {
    font-family: NeueMachina;
}

/* Right bar */

.person-rightbar-content
{
    flex: 0 0 auto;
    width: 66.66666667%;
}

.person-rightbar-empty {
    flex: 0 0 auto;
    width: 33.33333333%;
}
